<style>
    .value {
        padding-top: 7px;
    }
</style>

<form id="deal-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Customer_name')}:</label>
        <div class="col-xs-12 col-sm-8 value">
            {$row.customer_name}
        </div>
    </div>
    <!--    <div class="form-group">-->
    <!--        <label class="control-label col-xs-12 col-sm-2">{:__('Customer_type')}:</label>-->
    <!--        <div class="col-xs-12 col-sm-8">-->
    <!--    意向客户-->
    <input id="c-customer_type" data-rule="required" class="form-control" name="row[customer_type]"
           type="hidden" value="{$row.customer_type}">
    <!--        </div>-->
    <!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Corporate_name')}:</label>
        <div class="col-xs-12 col-sm-8 value">
            {$row.corporate_name?:'无'}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8 value">
            {$row.mobile}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Corporate_type')}:</label>
        <div class="col-xs-12 col-sm-8 value">
            {if$row.corporate_type==0}
            {:__('IndividualBusinesses')}
            {elseif$row.corporate_type==1}
            {:__('SmallScalTaxpayer')}
            {else}
            {:__('GeneralTaxpayer')}
            {/if}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Region')}:</label>
        <div class="col-xs-12 col-sm-8 value">
            {$row.region}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">服务内容:</label>
        <div class="col-xs-12 col-sm-8 ">
            <div style="margin-top: 10px;border: 1px solid #e8e8e8;border-bottom:none">
                <div style="display: flex;justify-content: space-evenly;align-items: center;border-bottom: 1px solid #e8e8e8">
                    <div style="width: 100%;padding: 5px;font-weight: bold">服务名称</div>
                    <div style="width: 100%;border-left: 1px solid #e8e8e8;padding: 5px;font-weight: bold">标准价格
                    </div>
                    <div style="width: 100%;border-left: 1px solid #e8e8e8;padding: 5px;font-weight: bold">成交金额
                    </div>
                    <!--                    <div style="width: 100%;border-left: 1px solid #e8e8e8;padding: 5px;font-weight: bold">付款截图-->
                    <!--                    </div>-->
                </div>

                {foreach $row.customer_service as $index=>$item}
                <div style="display: flex;justify-content: space-evenly;align-items: center;border-bottom: 1px solid #e8e8e8">
                    <div style="width: 100%;padding: 5px;font-size: 12px">{$item.service_name}</div>
                    <div style="width: 100%;border-left: 1px solid #e8e8e8;padding: 5px;font-size: 12px">
                        ￥{$item.standard_price}
                    </div>
                    <div style="width: 100%;border-left: 1px solid #e8e8e8;padding: 5px;">
                        ￥{$item.deal_price}
                    </div>
                </div>
                <input name="row[customer_service][{$index}][id]" value="{$item.id}" type="hidden">
                {/foreach}
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">服务说明:</label>
        <div class="col-xs-12 col-sm-8 value">
            {$row.service_desc}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">付款方式:</label>
        <div class="col-xs-12 col-sm-8 value">
            {if$row.pay_type==1}
            转账汇款
            {elseif$row.pay_type==1}
            现金
            {else}
            {/if}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">有效期限:</label>
        <div class="col-xs-12 col-sm-8 value">
            {$row.start_time_text} ~ {$row.end_time_text}
        </div>
    </div>
    <hr>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">付款截图:</label>
        <div class="col-xs-12 col-sm-8">
            <img src="{$row.pay_pic}" style="width: 120px">
        </div>
    </div>

<!--    <div class="form-group layer-footer">-->
<!--        <label class="control-label col-xs-12 col-sm-2"></label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <button type="submit" class="btn btn-primary btn-embossed disabled">提交审核</button>-->
<!--        </div>-->
<!--    </div>-->
</form>
